import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {path: '/', component: ()=> import('./views/Home.vue')},
        {path: '/register', component: ()=> import('./views/Register.vue')},
        {path: '/login', component: () => import('./views/Login.vue')},
        {path: '/students', component: () => import('./views/StudentListView.vue'), props: true},
        {path: '/profile', component: () => import('./views/StudentProfile.vue')},
        {path: '/students/edit/:id', component: () => import('./views/StudentEdit.vue')}        
    ]
})

export default router